package org.jianfa.learn.config;

import org.jianfa.learn.work.ZuoFan;
import org.jianfa.learn.aspect.NotVeryUsefulAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class AppConfig {

    @Bean
    public NotVeryUsefulAspect notVeryUsefulAspect() {
        return new NotVeryUsefulAspect();
    }

    @Bean
    public ZuoFan before() {
        return new ZuoFan();
    }
}
